<ion-view view-title="用户注册">
	<ion-nav-buttons side="left">
		<a class="button button-icon ion-arrow-left-c" href="#/tabs/my-account"></a>
	</ion-nav-buttons>
	<ion-content>

		<form name="myForm" novalidate="" ng-submit="register(myForm)">
			<div class="list">
				<label class="item item-input">
                    <span class="input-label">用户名<span style="color: red;">*</span>：</span>
                    <input type="text" name="name" ng-model="user.userName"
                           ng-maxlength="20"
                           required
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
				<!-- Error Container for Password -->
				<div class="validation-error" ng-class="{'is-dirty':form.password.$dirty}" ng-messages="myForm.name.$error" role="alert">
					<div ng-messages-include="templates/system-templates/detail-maxlength-20.html"></div>
				</div>

				<confirm-pass form="myForm" password="password"></confirm-pass>
				<!--手机验证码-->
				<check-digit form="myForm" data="user"></check-digit>
			</div>
			<button class="button button-full button-balanced" ng-disabled="myForm.$invalid" type="submit">
                注册
            </button>
		</form>

	</ion-content>
	<!--头部和内容结束-->
</ion-view>